#include "myd_basicobject.h"

using namespace myd;

//-----------------------------------------------------------
BasicObject::BasicObject(Renderer *renderer)
:
Entity(renderer)
{
	
	//this->setRenderer(renderer);
	createObject();
}
//-----------------------------------------------------------
BasicObject::~BasicObject(void)
{
}
//-----------------------------------------------------------
void BasicObject::createObject()
{
	D3DXCreateTeapot(renderer->getDevice(), &ppMesh, NULL);
/*
	switch(type)
    {
        case TEAPOT:
			{
				D3DXCreateTeapot(renderer->D3Ddevice, &ppMesh, NULL);
				break;
			}
		case CUBE:
			{
				break;
			}
		case SPHERE:
			{
				break;
			}
    }*/
}
//-----------------------------------------------------------
void BasicObject::draw()
{
	Entity::draw();
	ppMesh->DrawSubset(0);
}
//-----------------------------------------------------------